package cn.dvptech.remotecontrol.ui.adapter

import android.content.Context
import android.view.ViewGroup
import cn.dvptech.remotecontrol.R
import cn.dvptech.remotecontrol.app.AppAdapter
import com.github.chrisbanes.photoview.PhotoView

/**
 *    author  : ulongx
 *    website : www.dvptech.cn
 *    date    : 2024/4/25
 *    desc    : 图片预览适配器
 */
class ImagePreviewAdapter constructor(context: Context) : AppAdapter<String?>(context) {

    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
        return ViewHolder()
    }

    inner class ViewHolder : AppViewHolder(R.layout.image_preview_item) {

        private val photoView: PhotoView by lazy { getItemView() as PhotoView }

        override fun onBindView(position: Int) {
//            GlideApp.with(getContext())
//                .load(getItem(position))
//                .into(photoView)
        }
    }
}